home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1987 / Nov 87 / Re-Custom Menus 11⁄2 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.5 KB  |  36 lines  |  [TEXT/GEOL]

  1. Item    0120481                         2-Nov-87        16:25
  2.  
  3. From:   BIANCHI1                        Bianchi, Curt
  4.  
  5. To:     D0542                           Productive Tech, Dev, Mark Gilford
  6.  
  7. cc:     MACAPP$                         MacApp Interest List
  8.  
  9. Sub:    Response to Custom…
  10.  
  11. Mark,
  12.  
  13. First, I like Larry's suggestion of overriding TFrame.ScrlToSBars instead of
  14. TrackAppControl, in which you ensure that the scroll bar values are constrained
  15. and then call INHERITED ScrlToSBars to carry out the scroll.  In any case, you
  16. will have to override TFrame.
  17.  
  18. In TWindow.DownInContent, it calls whatFrame.TrackAppControl, which is NOT
  19. NECESSARILY TFrame.TrackAppControl.  It depends on the type of frame to which
  20. whatFrame refers.  If whatFrame is a TCalFrame, then it will call
  21. TCalFrame.TrackAppControl, not TFrame.TrackAppControl.  If TCalFrame is a
  22. decendent of TFrame, then you should need to resort to custom windows or
  23. typecasts, etc.
  24.  
  25. Perhaps where you're having trouble is that with a custom frame you can't
  26. create your window and frame objects with NewSimpleWindow, since it creates a
  27. frame of type TFrame.  In your DoMakeWindows method you must explicitly create
  28. your window and frame objects, making sure that you create a frame object of
  29. type TCalFrame.  Instead of calling NewSimpleWindow, you should do something
  30. similar in your DoMakeWindows, but create a TCalFrame object instead of a
  31. TFrame object.  You'll find NewSimpleWindow in UMacApp.inc2.p.
  32.  
  33. Curt Bianchi
  34.  
  35.  
  36.